// 引入ajax
import services from '../../services/services.js'


class earn {
    // 账户余额信息
    accountData(data, isLoading = false) {
        return services.ajax({
            url: '/v1/account/data',
            data: data,
            method: 'POST',
            isLoading
        })
    }

    //提现列表
    enterprisePayList(data, isLoading = false) {
        return services.ajax({
            url: '/v1/enterprisePay/list',
            data: data,
            method: 'POST',
            isLoading
        })
    }

    //提现
    enterprisePayWithdrawal(data, isLoading = false) {
        return services.ajax({
            url: '/v1/enterprisePay/withdrawal',
            data: data,
            method: 'POST',
            isLoading
        })
    }

    //查询提现数据
    withdrawalsData(data, isLoading = false) {
        return services.ajax({
            url: '/v1/account/withdrawals-data',
            data: data,
            method: 'POST',
            isLoading
        })
    }
}


module.exports = new earn()